package com.yq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * @author zxn
 * @date 2020-03-16
 * @description 
 */
public class Accessrecords extends Model<Accessrecords> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer hrid;

    private LocalDateTime indate;

    private String name;

    private String idcard;

    private String sex;

    private String phone;

    private Integer communityid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getHrid() {
        return hrid;
    }

    public void setHrid(Integer hrid) {
        this.hrid = hrid;
    }

    public LocalDateTime getIndate() {
        return indate;
    }

    public void setIndate(LocalDateTime indate) {
        this.indate = indate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getCommunityid() {
        return communityid;
    }

    public void setCommunityid(Integer communityid) {
        this.communityid = communityid;
    }

    public static final String ID = "id";

    public static final String HRID = "hrid";

    public static final String INDATE = "indate";

    public static final String NAME = "name";

    public static final String IDCARD = "idcard";

    public static final String SEX = "sex";

    public static final String PHONE = "phone";

    public static final String COMMUNITYID = "communityid";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Accessrecords{" +
        "id=" + id +
        ", hrid=" + hrid +
        ", indate=" + indate +
        ", name=" + name +
        ", idcard=" + idcard +
        ", sex=" + sex +
        ", phone=" + phone +
        ", communityid=" + communityid +
        "}";
    }
}
